import tkinter as tk


def on_click():
    print("Label被点击了！")


root = tk.Tk()
root.title("Label 点击事件")

# 使用Button模拟Label
label_button = tk.Button(root, text="这是一个Label",
                         bg="SystemButtonFace", activebackground="SystemButtonFace",
                         highlightthickness=0, borderwidth=0, relief="flat",
                         font=("Arial", 12), command=on_click)
label_button.pack(padx=20, pady=10)

root.mainloop()